package edu.zut.bailan.topicmenu.domain;

import edu.zut.bailan.base.domain.BaseEntity;

import javax.persistence.*;

@Entity
@Table(name = "T_MENU")
public class TopicMenu extends BaseEntity<Long> {

    /**
     *
     */
    private static final long serialVersionUID = 6893659140484835621L;

    /**
     * code of menu
     *
     */
    @Column(name = "CODE")
    String code;

    /**
     * name of menu
     *
     */
    @Column(name = "NAME")
    String name;


    /**
     * num of products
     *
     */
    @Column(name = "NUM")
    Integer num;

    /**
     * price of products
     *
     */


    @ManyToOne
    @JoinColumn(name = "MENU_GROUP_ID")
    TopicMenu topicMenu;

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }



    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public TopicMenu getTopicMenuG() {
        return topicMenu;
    }

    public void setMenu(TopicMenu topicMenu) {
        this.topicMenu = topicMenu;
    }
}
